package com.wxiao.exam;

import org.apache.shiro.crypto.hash.SimpleHash;
import org.junit.jupiter.api.Test;

public class T {

    @Test
    public void t1() {
        String hashAlgorithmName = "MD5";//加密方式
        Object crdentials = "123456";//密码原值
        Object salt = null;//盐值
        int hashIterations = 1024;//加密1024次
        Object result = new SimpleHash(hashAlgorithmName, crdentials, salt, hashIterations);
        System.out.println(result);
    }
    @Test
    public void t2() {
        String hashAlgorithmName = "MD5";//加密方式
        Object crdentials = "admin";//密码原值
        Object salt = "admin";//盐值
        int hashIterations = 1024;//加密1024次
        Object result = new SimpleHash(hashAlgorithmName, crdentials, salt, hashIterations);
        System.out.println(result);
    }

    //f6fdffe48c908deb0f4c3bd36c032e72

    @Test
    public void t3() {
       int i=1;
       int j;
       j=i++;
        System.out.println(i);
        System.out.println(j);
    }

   /* @Test
    public void t4() {
      String s;
        System.out.println("s="+s);
    }*/
 @Test
    public void t5() {
      int x=4;
     System.out.println((x>4)?99.9:9);
    }


}
